<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>love_air: com.example.akisame_lin.love_air2.trace.CommonUtil类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">love_air
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacecom.html">com</a></li><li class="navelem"><a class="el" href="namespacecom_1_1example.html">example</a></li><li class="navelem"><a class="el" href="namespacecom_1_1example_1_1akisame__lin.html">akisame_lin</a></li><li class="navelem"><a class="el" href="namespacecom_1_1example_1_1akisame__lin_1_1love__air2.html">love_air2</a></li><li class="navelem"><a class="el" href="namespacecom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace.html">trace</a></li><li class="navelem"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util.html">CommonUtil</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-static-attribs">静态 Public 属性</a> &#124;
<a href="#pri-static-attribs">静态 Private 属性</a> &#124;
<a href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">com.example.akisame_lin.love_air2.trace.CommonUtil类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
com.example.akisame_lin.love_air2.trace.CommonUtil 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util__coll__graph.png" border="0" usemap="#com_8example_8akisame__lin_8love__air2_8trace_8_common_util_coll__map" alt="Collaboration graph"/></div>
<!-- MAP 0 -->
<center><span class="legend">[<a href="graph_legend.html">图例</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a069003ebc75acd99f5fd76e80b8bb966"><td class="memItemLeft" align="right" valign="top">static String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util.html#a069003ebc75acd99f5fd76e80b8bb966">getCurProcessName</a> (Context context)</td></tr>
<tr class="separator:a069003ebc75acd99f5fd76e80b8bb966"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7abdf0dea67312159fa5ddf274531d37"><td class="memItemLeft" align="right" valign="top">static long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util.html#a7abdf0dea67312159fa5ddf274531d37">getCurrentTime</a> ()</td></tr>
<tr class="separator:a7abdf0dea67312159fa5ddf274531d37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a488fdf7a521ebccca47d21fc33c557af"><td class="memItemLeft" align="right" valign="top">static boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util.html#a488fdf7a521ebccca47d21fc33c557af">isEqualToZero</a> (double value)</td></tr>
<tr class="separator:a488fdf7a521ebccca47d21fc33c557af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90814909fcb9c44b6fa03bbab5c292d9"><td class="memItemLeft" align="right" valign="top">static boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util.html#a90814909fcb9c44b6fa03bbab5c292d9">isZeroPoint</a> (double latitude, double longitude)</td></tr>
<tr class="separator:a90814909fcb9c44b6fa03bbab5c292d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade1a3030d3dbda975993ef568a52653c"><td class="memItemLeft" align="right" valign="top">static long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util.html#ade1a3030d3dbda975993ef568a52653c">toTimeStamp</a> (String time)</td></tr>
<tr class="separator:ade1a3030d3dbda975993ef568a52653c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb313765d8a8c6a9cd89208b7f07e8ab"><td class="memItemLeft" align="right" valign="top">static String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util.html#afb313765d8a8c6a9cd89208b7f07e8ab">getHMS</a> (long timestamp)</td></tr>
<tr class="separator:afb313765d8a8c6a9cd89208b7f07e8ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a691094d61c9ef35cf1d48044025cd534"><td class="memItemLeft" align="right" valign="top">static String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util.html#a691094d61c9ef35cf1d48044025cd534">formatTime</a> (long timestamp)</td></tr>
<tr class="separator:a691094d61c9ef35cf1d48044025cd534"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a034eb7b6c0d83233febb4c0108655227"><td class="memItemLeft" align="right" valign="top">static String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util.html#a034eb7b6c0d83233febb4c0108655227">formatSecond</a> (int second)</td></tr>
<tr class="separator:a034eb7b6c0d83233febb4c0108655227"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6c3d702391714401c86dfe92bbf2cc9"><td class="memItemLeft" align="right" valign="top">static final String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util.html#ac6c3d702391714401c86dfe92bbf2cc9">formatDouble</a> (double doubleValue)</td></tr>
<tr class="separator:ac6c3d702391714401c86dfe92bbf2cc9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a473bd04933b5b1f4f18c877530bc016d"><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util.html#a473bd04933b5b1f4f18c877530bc016d">getXMoveDistance</a> (double slope)</td></tr>
<tr class="separator:a473bd04933b5b1f4f18c877530bc016d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5923364a6ae57bbe1e08404d12a73e7"><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util.html#ad5923364a6ae57bbe1e08404d12a73e7">getInterception</a> (double slope, LatLng point)</td></tr>
<tr class="separator:ad5923364a6ae57bbe1e08404d12a73e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65042d3df996b59adb6e6fd0dc754873"><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util.html#a65042d3df996b59adb6e6fd0dc754873">getSlope</a> (LatLng fromPoint, LatLng toPoint)</td></tr>
<tr class="separator:a65042d3df996b59adb6e6fd0dc754873"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad567f66bb61f0b03588ff0bce7034b53"><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util.html#ad567f66bb61f0b03588ff0bce7034b53">getAngle</a> (LatLng fromPoint, LatLng toPoint)</td></tr>
<tr class="separator:ad567f66bb61f0b03588ff0bce7034b53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab672677f30ba7716dfdd4c3b46ae8de3"><td class="memItemLeft" align="right" valign="top">static String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util.html#ab672677f30ba7716dfdd4c3b46ae8de3">getImei</a> (Context context)</td></tr>
<tr class="separator:ab672677f30ba7716dfdd4c3b46ae8de3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
静态 Public 属性</h2></td></tr>
<tr class="memitem:a4cbb88148527244a8dfe72f57950d373"><td class="memItemLeft" align="right" valign="top">static final double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util.html#a4cbb88148527244a8dfe72f57950d373">DISTANCE</a> = 0.0001</td></tr>
<tr class="separator:a4cbb88148527244a8dfe72f57950d373"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-attribs"></a>
静态 Private 属性</h2></td></tr>
<tr class="memitem:ad4241a8c0a20ae92c1da0cd7c5d3b05a"><td class="memItemLeft" align="right" valign="top">static DecimalFormat&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1akisame__lin_1_1love__air2_1_1trace_1_1_common_util.html#ad4241a8c0a20ae92c1da0cd7c5d3b05a">df</a> = new DecimalFormat(&quot;######0.00&quot;)</td></tr>
<tr class="separator:ad4241a8c0a20ae92c1da0cd7c5d3b05a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Created by baidu on 17/1/23. </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="ac6c3d702391714401c86dfe92bbf2cc9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6c3d702391714401c86dfe92bbf2cc9">&#9670;&nbsp;</a></span>formatDouble()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static final String com.example.akisame_lin.love_air2.trace.CommonUtil.formatDouble </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>doubleValue</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a034eb7b6c0d83233febb4c0108655227"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a034eb7b6c0d83233febb4c0108655227">&#9670;&nbsp;</a></span>formatSecond()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static String com.example.akisame_lin.love_air2.trace.CommonUtil.formatSecond </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>second</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a691094d61c9ef35cf1d48044025cd534"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a691094d61c9ef35cf1d48044025cd534">&#9670;&nbsp;</a></span>formatTime()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static String com.example.akisame_lin.love_air2.trace.CommonUtil.formatTime </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>timestamp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取年月日 时分秒</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">timestamp</td><td>时间戳（单位：毫秒）</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ad567f66bb61f0b03588ff0bce7034b53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad567f66bb61f0b03588ff0bce7034b53">&#9670;&nbsp;</a></span>getAngle()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static double com.example.akisame_lin.love_air2.trace.CommonUtil.getAngle </td>
          <td>(</td>
          <td class="paramtype">LatLng&#160;</td>
          <td class="paramname"><em>fromPoint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LatLng&#160;</td>
          <td class="paramname"><em>toPoint</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>根据两点算取图标转的角度 </p>

</div>
</div>
<a id="a069003ebc75acd99f5fd76e80b8bb966"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a069003ebc75acd99f5fd76e80b8bb966">&#9670;&nbsp;</a></span>getCurProcessName()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static String com.example.akisame_lin.love_air2.trace.CommonUtil.getCurProcessName </td>
          <td>(</td>
          <td class="paramtype">Context&#160;</td>
          <td class="paramname"><em>context</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a7abdf0dea67312159fa5ddf274531d37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7abdf0dea67312159fa5ddf274531d37">&#9670;&nbsp;</a></span>getCurrentTime()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static long com.example.akisame_lin.love_air2.trace.CommonUtil.getCurrentTime </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取当前时间戳(单位：秒)</p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="afb313765d8a8c6a9cd89208b7f07e8ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb313765d8a8c6a9cd89208b7f07e8ab">&#9670;&nbsp;</a></span>getHMS()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static String com.example.akisame_lin.love_air2.trace.CommonUtil.getHMS </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>timestamp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取时分秒</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">timestamp</td><td>时间戳（单位：毫秒）</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ab672677f30ba7716dfdd4c3b46ae8de3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab672677f30ba7716dfdd4c3b46ae8de3">&#9670;&nbsp;</a></span>getImei()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static String com.example.akisame_lin.love_air2.trace.CommonUtil.getImei </td>
          <td>(</td>
          <td class="paramtype">Context&#160;</td>
          <td class="paramname"><em>context</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>保存当前定位点获取设备IMEI码</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ad5923364a6ae57bbe1e08404d12a73e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5923364a6ae57bbe1e08404d12a73e7">&#9670;&nbsp;</a></span>getInterception()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static double com.example.akisame_lin.love_air2.trace.CommonUtil.getInterception </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>slope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LatLng&#160;</td>
          <td class="paramname"><em>point</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>根据点和斜率算取截距 </p>

</div>
</div>
<a id="a65042d3df996b59adb6e6fd0dc754873"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65042d3df996b59adb6e6fd0dc754873">&#9670;&nbsp;</a></span>getSlope()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static double com.example.akisame_lin.love_air2.trace.CommonUtil.getSlope </td>
          <td>(</td>
          <td class="paramtype">LatLng&#160;</td>
          <td class="paramname"><em>fromPoint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LatLng&#160;</td>
          <td class="paramname"><em>toPoint</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>算斜率 </p>

</div>
</div>
<a id="a473bd04933b5b1f4f18c877530bc016d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a473bd04933b5b1f4f18c877530bc016d">&#9670;&nbsp;</a></span>getXMoveDistance()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static double com.example.akisame_lin.love_air2.trace.CommonUtil.getXMoveDistance </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>slope</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>计算x方向每次移动的距离 </p>

</div>
</div>
<a id="a488fdf7a521ebccca47d21fc33c557af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a488fdf7a521ebccca47d21fc33c557af">&#9670;&nbsp;</a></span>isEqualToZero()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static boolean com.example.akisame_lin.love_air2.trace.CommonUtil.isEqualToZero </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>校验double数值是否为0</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a90814909fcb9c44b6fa03bbab5c292d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90814909fcb9c44b6fa03bbab5c292d9">&#9670;&nbsp;</a></span>isZeroPoint()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static boolean com.example.akisame_lin.love_air2.trace.CommonUtil.isZeroPoint </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>latitude</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>longitude</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>经纬度是否为(0,0)点</p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ade1a3030d3dbda975993ef568a52653c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade1a3030d3dbda975993ef568a52653c">&#9670;&nbsp;</a></span>toTimeStamp()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static long com.example.akisame_lin.love_air2.trace.CommonUtil.toTimeStamp </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>time</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>将字符串转为时间戳 </p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="ad4241a8c0a20ae92c1da0cd7c5d3b05a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad4241a8c0a20ae92c1da0cd7c5d3b05a">&#9670;&nbsp;</a></span>df</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">DecimalFormat com.example.akisame_lin.love_air2.trace.CommonUtil.df = new DecimalFormat(&quot;######0.00&quot;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a4cbb88148527244a8dfe72f57950d373"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4cbb88148527244a8dfe72f57950d373">&#9670;&nbsp;</a></span>DISTANCE</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final double com.example.akisame_lin.love_air2.trace.CommonUtil.DISTANCE = 0.0001</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>app/src/main/java/com/example/akisame_lin/love_air2/trace/<a class="el" href="_common_util_8java.html">CommonUtil.java</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
